package com.qunji.cpsdistribution.entity;

import com.baomidou.mybatisplus.enums.IdType;
import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.activerecord.Model;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author sjq
 * @since 2020-07-23
 */
public class Expense extends Model<Expense> {

    private static final long serialVersionUID = 1L;

    /**
     * 消费记录id
     */
    @TableId(value = "expense_id", type = IdType.AUTO)
    private Long expenseId;
    /**
     * 消费金额
     */
    private BigDecimal expenseMoney;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 是否退款（1/0）1表示已退款
     */
    private Integer refund;
    /**
     * 用户id
     */
    private Long userId;
    /**
     * 支付类型id
     */
    private Long paymentId;


    public Long getExpenseId() {
        return expenseId;
    }

    public void setExpenseId(Long expenseId) {
        this.expenseId = expenseId;
    }

    public BigDecimal getExpenseMoney() {
        return expenseMoney;
    }

    public void setExpenseMoney(BigDecimal expenseMoney) {
        this.expenseMoney = expenseMoney;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getRefund() {
        return refund;
    }

    public void setRefund(Integer refund) {
        this.refund = refund;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getPaymentId() {
        return paymentId;
    }

    public void setPaymentId(Long paymentId) {
        this.paymentId = paymentId;
    }

    @Override
    protected Serializable pkVal() {
        return this.expenseId;
    }

    @Override
    public String toString() {
        return "Expense{" +
        ", expenseId=" + expenseId +
        ", expenseMoney=" + expenseMoney +
        ", createTime=" + createTime +
        ", refund=" + refund +
        ", userId=" + userId +
        ", paymentId=" + paymentId +
        "}";
    }
}
